public class TestDemo {
    public static void main(String[] args) {
        C c = new C();
        c.test();
    }
}

class A{
    public int a = 1;
}

class B extends A{
    public int b;
    public int getA(){
        return super.a;
    }
}

class C extends B{
    public int c;
    public void test(){
        System.out.println(super.getA());
    }
}